package com.ulife.permission.dao;

import java.sql.SQLException;
import java.util.List;

import com.ulife.permission.dao.dataobject.DepartmentDO;

public interface DepartmentDao {

	DepartmentDO getDepartmentById(long departmentId) throws SQLException;

	int addDepartment(DepartmentDO department) throws SQLException;

	List<DepartmentDO> getAllDepartment() throws SQLException;

	int delDepartment(long departmentId) throws SQLException;

	int updateDepartment(DepartmentDO department) throws SQLException;

	List<DepartmentDO> getAllAvailableDepartment() throws SQLException;
	
}
